from flask_appbuilder import ModelView
from flask_appbuilder.fieldwidgets import Select2Widget
from flask_appbuilder.models.sqla.interface import SQLAInterface
from app.models import SerialPortCategory, SerialPort, Vendor
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from app import appbuilder, db


class VendorView(ModelView):
    datamodel = SQLAInterface(Vendor)


appbuilder.add_view(VendorView, "Vendors", icon="fa-folder-open-o", category="Company")

